package com.seocoo.worker.order.widget.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.seocoo.worker.R;
import com.seocoo.worker.order.widget.rsp.RspOrderDetailParticulars;

/**
 * 订单详情明细适配器
 */
public class OrderDetailParticularsAdapter extends BaseQuickAdapter<RspOrderDetailParticulars, BaseViewHolder> {

    public OrderDetailParticularsAdapter() {
        super(R.layout.order_detail_particulars_item);
    }

    @Override
    protected void convert(BaseViewHolder helper, RspOrderDetailParticulars item) {
        helper.setText(R.id.tv_name, item.getName())
                .setText(R.id.tv_content, item.getContent());
    }
}
